package com.my.selectcoursesystem.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "student")
public class Student {
    @Id
    @Column(name = "s_id")
    private String sid;
    @Column(name = "s_name")
    private String sname;
    @Column(name = "gender")
    private String gender;
    @Column(name = "age")
    private Integer age;
    @Column(name = "s_code")
    private String scode;
    @Column(name = "s_password")
    private String spassword;
    @Column(name = "grade")
    private String grade;
    @Column(name = "major")
    private String major;
    @Column(name = "college")
    private String college;

    public Student(String s_id, String s_name, String gender, Integer age, String scode, String spassword, String grade, String major, String college) {
        this.sid = s_id;
        this.sname = s_name;
        this.gender = gender;
        this.age = age;
        this.scode = scode;
        this.spassword = spassword;
        this.grade = grade;
        this.major = major;
        this.college = college;
    }

    public Student() {
    }

    public String getSid() {
        return sid;
    }

    public void setSid(String sid) {
        this.sid = sid;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getScode() {
        return scode;
    }

    public void setScode(String scode) {
        this.scode = scode;
    }

    public String getSpassword() {
        return spassword;
    }

    public void setSpassword(String spassword) {
        this.spassword = spassword;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    public String getCollege() {
        return college;
    }

    public void setCollege(String college) {
        this.college = college;
    }
}
